/**
 * window加载事件封装
 */
const $ = function (callback) {
    window.addEventListener('load', callback)
}

/**
 * 获取元素
 */
const g = function (selector) {
    return document.querySelector(selector)
}
const ga = function (selector) {
    return document.querySelectorAll(selector)
}


/**
 * 暴露对象
 */
module.exports = {
    $,
    g,
    ga
}